package com.cavy.platform.server.repository;

import com.cavy.platform.server.domain.job.JobAction;
import com.cavy.platform.server.domain.job.RunningJob;
import com.cavy.platform.server.dto.JobSearchListDto;

import java.util.List;

/**
 * @author 唐旭
 * @Date 2018/7/25
 */
public interface JobRepository {
    void save(JobAction job);

    JobAction load(String workspaceName, String projectName, String pipelineName, String number);

    void delete(RunningJob job);

    List<JobAction> find(JobSearchListDto dto);

    List<JobAction> list();
}
